package com.diandi.signature.mapper;

import com.diandi.signature.bean.contract.SignatureContract;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 合同生成Mapper接口
 * @author mwz
 * @create 2017-08-23 14:03
 * @version V1.0.0
 */
@Repository
public interface SignatureContractMapper {

    /**
     * 根据用户ID查询合同信息
     * @param paramMap
     * @return
     */
    public SignatureContract getSignatureContractByCode(Map<String, Object> paramMap);

    /**
     * 插入合同消息
     * @param signatureContract
     * @return
     */
    public Integer insertSignatureContract(SignatureContract signatureContract);

    /**
     * 更新合同消息
     * @param signatureContract
     * @return
     */
    public Integer updateSignatureContract(SignatureContract signatureContract);

    /**
     * 更新合同状态和url
     * @param paramMap
     * @return
     */
    Integer updateUrlsByConNo(Map<String, String> paramMap);

    List<SignatureContract> queryTask(Map<String, Object> paramMap);

    SignatureContract getContract(Map<String, Object> paramMap);

    List<SignatureContract> queryList(Map<String, Object> paramMap);

    Integer queryCount(Map<String, Object> paramMap);
}
